<?
use BC\Games\Holdem\Cards;

include '../../../SiteIndex.php';

$cards = array(Cards::ACE, Cards::KING, Cards::QUEEN, Cards::JACK, Cards::TEN, Cards::NINE, Cards::EIGHT, Cards::SEVEN, Cards::SIX, Cards::FIVE, Cards::FOUR, Cards::THREE, Cards::TWO);
$suites = array(Cards::CLUBS, Cards::SPADES, Cards::DIAMONDS, Cards::HEARTS);

$wPos = 0;
$hPos = 0;
$width = 34;
$height = 48;
foreach($suites as $suit) {
	foreach($cards as $num) {
		$card = $num | $suit;

		$char = Cards::printCards($card);

		echo ".C" . $card . " { background-position: ";
		echo -$wPos . ($wPos ? 'em' : '');
		echo ' ' . -$hPos . ($hPos ? 'em' : '');
		echo "; } /** {$char} **/\n";

		if($wPos >= 10 * $width) {
			$wPos = 0;
			$hPos += $height;
		} else {
			$wPos += $width;
		}
	}
}